package com.hdsx.netty.rpcclient.nio;

import com.hdsx.netty.api.OrderServer;

/**
 * @author 占贤银
 * time 2024/8/10 13:41
 * description 生命之灯因热情而点燃，生命之舟因拼搏而前行
 */
public class NioClient {

    public static void main(String[] args) {
        NioProxy proxy = new NioProxy(9999, "127.0.0.1");
        OrderServer orderServer = proxy.create(OrderServer.class);
        String result = orderServer.getOrderMsg();
        System.out.println("result = " + result);
    }
}
